package com.kongjs.application.convert;

import com.kongjs.application.model.dto.QueryOperationLogDTO;
import com.kongjs.application.model.dto.QueryOperationLogParamDTO;
import com.kongjs.application.model.entity.OperationLog;
import com.kongjs.application.model.vo.QueryOperationLogParamVO;
import com.kongjs.application.model.vo.QueryOperationLogVO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE,unmappedSourcePolicy = ReportingPolicy.IGNORE)
public interface OperationLogConverter {
    List<QueryOperationLogVO> toVos(List<QueryOperationLogDTO> items);
    QueryOperationLogDTO toDto(OperationLog operationLog);
    QueryOperationLogParamDTO toDto(QueryOperationLogParamVO paramVO);
}
